import { NODE_SETING_ENUM } from '../../config'

export default {
  shape: 'custom-polygon',
  width: 80,
  height: 40,
  attrs: {
    body: {
      refPoints: '0,0 20,40 60,40 80,0'
    },
    data: {
      width: 80,
      height: 40,
      angle: 0
    }
  },
  ports: {
    items: [
      {
        group: 'top'
      },
      {
        group: 'bottom'
      }
    ]
  },
  data: {
    options: [
      NODE_SETING_ENUM.WIDTH,
      NODE_SETING_ENUM.HEIGHT,
      NODE_SETING_ENUM.ANGLE,
      NODE_SETING_ENUM.FILL,
      NODE_SETING_ENUM.STROKE,
      NODE_SETING_ENUM.STROKE_WIDTH,
      NODE_SETING_ENUM.FONT_SIZE,
      NODE_SETING_ENUM.FONT_COLOR
    ],
    editableOptions: ['top', 'bottom']
  }
}
